<%@page import="aex.domain.ArticleCategory"%>
<%@page import="aex.domain.Article"%>
<%@page import="aex.service.ShowViewService"%>
<%@page import="aex.util.SSHUtil"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@page import="aex.domain.Puser"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
WebApplicationContext ac = SSHUtil.getApplication(request);
ShowViewService svService = (ShowViewService) ac.getBean(ShowViewService.SERVICE_NAME);
%>

<!DOCTYPE>
<html>
  <head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8">
    <meta name="keywords" content="${webKeyWord}">
	<meta name="description" content="${webDescription}" />
	<title> ${webTitle} </title>
	
	<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
  	
	<link rel="stylesheet" type="text/css" href="expandStyle/aex_userPage.css">
	<link rel="stylesheet" type="text/css" href="expandStyle/expertList.css" />
	<link rel="stylesheet" type="text/css" href="expandStyle/index.css" />
	<link rel="stylesheet" type="text/css" href="expandStyle/ex_focusCarousel.css">
	
	<script type="text/javascript" src="systemJs/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="systemJs/H-ui.admin.js"></script>
	<script type="text/javascript" src="expandStyle/aex_userPage.js"></script>
	<script type="text/javascript" src="expandStyle/ex_focusCarousel.js"></script>
	<script type="text/javascript" src="expandStyle/move.js"></script>
	
	</head>
  <body>
    
    <!--导航栏-->
    
    <%
    	Puser user=(Puser)request.getSession().getAttribute("user");
    	if(user==null){
    		%>
    			<jsp:include page="/systemPage/headNavVisitor1.jsp"></jsp:include>		
    		<%
    	}else{
    		%>
				<jsp:include page="/systemPage/headNavVisitor2.jsp"></jsp:include>
    		<%
    	}
    %>
	
	
	
	

 <!--主要内容-->
  <div class="container">
  	 <div class="container_left">
  	 
  	    <!--专家列表-->
           <h2 id="all_expert">所有专家</h2>
           
          	<%
           		List<Article> docters=svService.getShowBoxArticle("医学专家",1000);
           		for(Article art:docters){
           			out.print("<div class='expert'>"+
           	                	"<a targer='_black' href='visitor/visitor_article.do?arId="+art.getArId()+"'><img src='"+art.getArAuthor()+"' align='top'></a>"+
           	                	"<div class='expert_info'>"+
           	                  	"	<div class='expert_tittle'>"+art.getArTitle()+"</div>"+
           	                  	"	<div class='expert_introduction'>"+
           	                     "	<a targer='_black' href='visitor/visitor_article.do?arId="+art.getArId()+"'>"+art.getArAbstract()+"</a>"+
           	                  "</div>"+
           	               "</div>"+
           	             "</div>");
           		}
           	%>
  	 </div>
  	 
  	 <!-- 侧边栏 -->
  	 <jsp:include page="/systemPage/cbl1.jsp"></jsp:include>
  </div>
	
	
    <!--网站底部-->
	<jsp:include page="/systemPage/footerVisitor.jsp"></jsp:include>
	<a href="adminPage/login.jsp">后台管理</a>
    <script type="text/javascript" src="expandStyle/album.js"></script> 
<script type="text/javascript">
	

	/**幻灯片**/
	$(function(){
	$('#demo01').flexslider({
		animation: "slide",
		direction:"horizontal",
		easing:"swing"
	});
});
</script>
    
  </body>
</html>
